package ejercicioEncriptador;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class TestStrategiaSiguienteVocal {

	NextVocalStrategy strategiaEncriptar;
	
	
	@Before
	public void setUp() throws Exception {
		strategiaEncriptar = new NextVocalStrategy();
		
	}

	@Test
	public void test() {
		assertTrue(strategiaEncriptar.isVocal('a'));
		assertTrue(strategiaEncriptar.isVocal('e'));
		assertTrue(strategiaEncriptar.isVocal('i'));
		assertTrue(strategiaEncriptar.isVocal('o'));
		assertTrue(strategiaEncriptar.isVocal('u'));
	}
	
	
	@Test
	public void test2(){
		strategiaEncriptar = new NextVocalStrategy();
		
		assertTrue(strategiaEncriptar.nextVocals('e') == "i");
		
	}
	
	@Test
	public void test3(){
		strategiaEncriptar = new NextVocalStrategy();
		
		System.out.println(strategiaEncriptar.encriptar("hola"));
		
		assertEquals("eluh" , strategiaEncriptar.encriptar("hola"));
		
	}

	

}
